import request from "./request";
//登录
export const LoginApi = (parmas: ILoginParams): IMyResponse<string> =>
  request.post("/1024/login", parmas);
//首页
export const HomePageApi = (): IMyResponse<IHomeDataModel> =>
  request.get("/6666");
//注册
export const RegisterApi = (params: IRegisterParams): IMyResponse<string> =>
  request.post("/1024/register", params);
//快速刷题

export const FastPageApi = (): IMyResponse<IFastDataModel> =>
  request.get("/4698");
//点击练习 根据actioncode获取题目的类型的接口

export const SelectPageApi = (
  actionCode: string
): IMyResponse<ISelectOption[]> => request.get(`/1314/${actionCode}/all`);
//题目列表
export const SelectListApi = (
  params: IDataParams
): IMyResponse<IPracticeList[]> => request.post("1314", params);
